package com.pingan.pastry.spi;

import com.pingan.pastry.common.REQUEST_TYPE;
import com.pingan.pastry.common.annotation.Fn;
import com.pingan.pastry.common.annotation.Param;
import com.pingan.pastry.rpc.SPI;
import com.pingan.pastry.rpc.support.HttpInvoker;
import com.pingan.pastry.entity.User;

import java.util.List;

@SPI(host = "http://localhost:8800",proxy = HttpInvoker.class)
public interface UserSPI {

    @Fn(value = "/list",requestType = REQUEST_TYPE.GET)
    List<User> listUser(@Param("id") String id, @Param("age") Integer age);
}
